package com.shensi.api.admin.client.station;

import com.shensi.api.admin.client.fallback.monitor.SysLogininforClientFallBack;
import com.shensi.api.admin.domian.station.dto.GradeDto;
import com.shensi.api.admin.domian.station.dto.GzhNewsTemplateDto;
import com.shensi.common.core.annotation.Log;
import com.shensi.common.core.constant.CloudConstant;
import com.shensi.common.core.domain.AjaxResult;
import com.shensi.common.core.enums.BusinessType;
import com.shensi.common.core.page.TableDataInfo;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;


/**
 * @author mao
 */
@FeignClient(
        value = CloudConstant.ADMIN_SERVER,
        fallbackFactory = SysLogininforClientFallBack.class)
@Component
public interface GzhNewsTemplateClient {

    /**
     * 查询模板消息集合
     */
    @GetMapping("/gzhNewsTemplate/info/listTemplate")
    public TableDataInfo list(GzhNewsTemplateDto gzhNewsTemplate) ;

    /**
     * 增加模板消息
     */
    @PostMapping(value = "/gzhNewsTemplate/info/addTemplate")
    public AjaxResult addTemplate(@RequestBody GzhNewsTemplateDto gzhNewsTemplate);


    /**
     * 获取模板详细消息
     */
    @GetMapping(value = "/gzhNewsTemplate/info/{id}")
    public AjaxResult getInfo(@PathVariable("id") Long id);

    /**
     * 修改模板信息
     */
    @PutMapping(value = "/gzhNewsTemplate/info/updateTemplate")
    public AjaxResult edit(@RequestBody GzhNewsTemplateDto gzhNewsTemplate);

}
